--UdpClient.lua

local UDP_SERVER_IP = "192.168.0.255";
local UDP_SERVER_PORT = 60000;

local udpConnect = net.createConnection(net.UDP, 0);
udpConnect:connect(UDP_SERVER_PORT, UDP_SERVER_IP);
tmr.alarm(0, 1000, 1, function () 

    local slefInfo = string.format("I am LockWg, IP[%s] , Port[%d]", wifi.sta.getip(), 8000);
    --print(slefInfo);
    udpConnect:send(slefInfo);
    
end);

